Style issue
authorJethro Beekman <jethro@jbeekman.nl>
Tue, 19 Apr 2016 18:59:25 +0000 (11:59 -0700)
committerJethro Beekman <jethro@jbeekman.nl>
Tue, 19 Apr 2016 18:59:25 +0000 (11:59 -0700)
src/bin/cargo.rs

index bfa6e87639f36111e73d3ba5b9081281f3d6ae64..9f144e2b85a3f772e76ab8223d14933dd2ad835e 100644 (file)
@@ -247,9 +247,9 @@ fn list_commands(config: &Config) -> BTreeSet<String> {
 #[cfg(unix)]
 fn is_executable<P: AsRef<Path>>(path: P) -> bool {
     use std::os::unix::prelude::*;
-    fs::metadata(path).map(|metadata|
+    fs::metadata(path).map(|metadata| {
         metadata.is_file() && metadata.permissions().mode() & 0o111 != 0
-    ).unwrap_or(false)
+    }).unwrap_or(false)
 }
 #[cfg(windows)]
 fn is_executable<P: AsRef<Path>>(path: P) -> bool {